FROM node:18-bullseye

# 工作目录
WORKDIR /app

# 复制项目文件
COPY package*.json ./
RUN npm config set registry https://registry.npmmirror.com
RUN npm install
COPY . .

# 暴露端口
EXPOSE 443

CMD node server.js